/* ====================================================================
 *         Projeto: releasetool-core
 *         Arquivo: Repository.java
 * Data de Criação: Aug 30, 2011
 * -------------------------------------------------------------------
 * Jorge Luiz Monteiro - SCJP, SCWCD, SCBCD, SCEA
 * Arquiteto de Software
 * 
 * http://www.jorgemonteiro.com
 * http://www.linkedin.com/pub/jorge-luiz-monteiro/24/495/a34
 * jorge@jorgemonteiro.com
 * -------------------------------------------------------------------
 * 
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 *  with the License.  You may obtain a copy of the License at
 *
 *  http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing,
 *  software distributed under the License is distributed on an
 *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 *  KIND, either express or implied.  See the License for the
 *  specific language governing permissions and limitations
 *  under the License.
 */
package org.jversion.integration.scm.model;

import java.io.Serializable;

import org.jversion.integration.scm.model.types.RepositoryType;

/**
 * POJO representando uma instância de repositório SVN.
 * @author Jorge Luiz Monteiro
 */
public class Repository implements Serializable {

	private static final long serialVersionUID = 8847021246688850120L;

	/** Nome do repositório para identificação. */
	private String name;
	
	/**
	 * <p>Localização do repositório.</p>
	 * <p>Caso o repositório seja local, representa o diretório do repositório. Caso contrário a URL.</p> 
	 */
	private String location;
	
	/** Informa o tipo de repositório */
	private RepositoryType type;

	public Repository(String location) {
		this.location = location;
		this.type = RepositoryType.FILE;
	}
	
	public Repository() {
		this(null);
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public RepositoryType getType() {
		return type;
	}

	public void setType(RepositoryType type) {
		this.type = type;
	}

	public String getLocation() {
		return location;
	}

	public void setLocation(String location) {
		this.location = location;
	}
	
}
